import request from '@/utils/request'

// 查询会员钱包流水列表
export function listPurseLog(query) {
  return request({
    url: '/net/purseLog/list',
    method: 'get',
    params: query
  })
}

// 查询会员钱包流水详细
export function getPurseLog(id) {
  return request({
    url: '/net/purseLog/' + id,
    method: 'get'
  })
}

// 新增会员钱包流水
export function addPurseLog(data) {
  return request({
    url: '/net/purseLog',
    method: 'post',
    data: data
  })
}

// 修改会员钱包流水
export function updatePurseLog(data) {
  return request({
    url: '/net/purseLog',
    method: 'put',
    data: data
  })
}

// 删除会员钱包流水
export function delPurseLog(id) {
  return request({
    url: '/net/purseLog/' + id,
    method: 'delete'
  })
}
